package com.thx.appserver.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thx.appserver.dao.CappNewsDao;
import com.thx.appserver.model.CappNews;
import com.thx.common.service.BaseManager;
import com.thx.common.web.Page;

/**
 * New相关的Service层
 * 
 * @author 乔红红
 * 
 */
@Service
@Transactional(readOnly = true)
public class CappNewsManager extends BaseManager<CappNews>{

	@Autowired
	private CappNewsDao newsDao;



	public CappNewsDao getNewsDao() {
		return newsDao;
	}

	public void setNewsDao(CappNewsDao newsDao) {
		this.newsDao = newsDao;
	}

	public List<CappNews> searchNews(CappNews entity) {
		return  newsDao.searchNew(entity);
	}
	
	public List<CappNews> queryAll(CappNews entity) {
		return  newsDao.queryAll(entity,0,0);
	}
	

	

	
	
}
